package com.project.redis;

import org.springframework.stereotype.Component;

@Component
public class MessageReceiver {
    /**接收消息的方法*/
    public void receiveMessageChat(String message){
        System.out.println("chat收到一条消息："+message);
    }

    /**接收消息的方法*/
    public void receiveMessageMsg(String message){
        System.out.println("msg收到一条消息："+message);
    }
}
